<?php

namespace App\Http\Controllers;

use Laravel\Lumen\Routing\Controller as BaseController;

class Controller extends BaseController
{
    //
    /**
     * 统一返回的数据的接口
     */
    public static function response($data){
        return json_encode([
            'code'=>200,
            'msg'=>'success',
            'result'=>$data
        ]);
    }
}
